home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / biff_and.swf / scripts / frame_15 / DoAction.as
Encoding:
Text File  |  2011-06-09  |  28.9 KB  |  810 lines

  1. function ┬º\x01\x02┬º()
  2. {
  3.    return 2579 % 511 * 5;
  4. }
  5. var ┬º\x01┬º = 325 + "\x01\x02"();
  6. while(true)
  7. {
  8.    if(eval("\x01") == 445)
  9.    {
  10.       set("\x01",eval("\x01") + 288);
  11.       ┬º┬ºpush(true);
  12.    }
  13.    else if(eval("\x01") == 133)
  14.    {
  15.       set("\x01",eval("\x01") + 735);
  16.    }
  17.    else if(eval("\x01") == 700)
  18.    {
  19.       set("\x01",eval("\x01") - 3);
  20.    }
  21.    else if(eval("\x01") == 115)
  22.    {
  23.       set("\x01",eval("\x01") + 659);
  24.       ┬º┬ºpush("\x0f");
  25.    }
  26.    else if(eval("\x01") == 32)
  27.    {
  28.       set("\x01",eval("\x01") + 665);
  29.    }
  30.    else if(eval("\x01") == 733)
  31.    {
  32.       set("\x01",eval("\x01") - 189);
  33.       if(function ┬º\x01\x02┬º()
  34.       {
  35.          return 2579 % 511 * 5;
  36.       })
  37.       {
  38.          set("\x01",eval("\x01") - 512);
  39.       }
  40.    }
  41.    else if(eval("\x01") == 149)
  42.    {
  43.       set("\x01",eval("\x01") - 34);
  44.       var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  45.       {
  46.          return 2579 % 511 * 5;
  47.       };
  48.    }
  49.    else if(eval("\x01") == 544)
  50.    {
  51.       set("\x01",eval("\x01") - 512);
  52.       with(┬º┬ºpop() | function ┬º\x01\x02┬º()
  53.       {
  54.          return 2579 % 511 * 5;
  55.       })
  56.       {
  57.          toggleHighQuality();
  58.       }
  59.    }
  60.    else
  61.    {
  62.       if(eval("\x01") == 697)
  63.       {
  64.          set("\x01",eval("\x01") + 261);
  65.          ┬º┬ºpush(true);
  66.          continue;
  67.       }
  68.       if(eval("\x01") == 958)
  69.       {
  70.          set("\x01",eval("\x01") - 204);
  71.          if(function ┬º\x01\x02┬º()
  72.          {
  73.             return 2579 % 511 * 5;
  74.          })
  75.          {
  76.             set("\x01",eval("\x01") + 197);
  77.          }
  78.          continue;
  79.       }
  80.       if(eval("\x01") == 868)
  81.       {
  82.          set("\x01",eval("\x01") - 719);
  83.          ┬º┬ºpush("\x0f");
  84.          ┬º┬ºpush(1);
  85.          continue;
  86.       }
  87.       if(eval("\x01") == 951)
  88.       {
  89.          set("\x01",eval("\x01") - 83);
  90.          continue;
  91.       }
  92.       if(eval("\x01") == 754)
  93.       {
  94.          set("\x01",eval("\x01") + 197);
  95.          break;
  96.       }
  97.       if(eval("\x01") == 774)
  98.       {
  99.          set("\x01",eval("\x01") - 310);
  100.          ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  101.          {
  102.             return 2579 % 511 * 5;
  103.          }));
  104.          continue;
  105.       }
  106.       if(eval("\x01") == 464)
  107.       {
  108.          set("\x01",eval("\x01") + 78);
  109.          ┬º┬ºpush(!function ┬º\x01\x02┬º()
  110.          {
  111.             return 2579 % 511 * 5;
  112.          });
  113.          continue;
  114.       }
  115.       if(eval("\x01") == 542)
  116.       {
  117.          set("\x01",eval("\x01") - 88);
  118.          if(function ┬º\x01\x02┬º()
  119.          {
  120.             return 2579 % 511 * 5;
  121.          })
  122.          {
  123.             set("\x01",eval("\x01") + 366);
  124.          }
  125.          continue;
  126.       }
  127.       if(eval("\x01") != 454)
  128.       {
  129.          if(eval("\x01") == 820)
  130.          {
  131.             set("\x01",eval("\x01") + 144);
  132.             _root.music.start(0,100000);
  133.             var drama = 1;
  134.             var cheat = 1;
  135.             var winkelb = 0;
  136.             var linked = " ";
  137.             if(qualSet == 1)
  138.             {
  139.                _quality = "LOW";
  140.             }
  141.             if(qualSet == 2)
  142.             {
  143.                _quality = "HIGH";
  144.             }
  145.             var score = 0;
  146.             var linecolor = 1;
  147.             var colPos = -59;
  148.             var dragallowBiff = 1;
  149.             var dragallowBaff = 1;
  150.             var xCount = 0;
  151.             var countLevel = 0;
  152.             var absFrames = 0;
  153.             var bMoving = 0;
  154.             var leineOffset = 0;
  155.             var fishTobi = 0;
  156.             var fishFrank = 0;
  157.             var fishReni = 0;
  158.             var fishGreg = 0;
  159.             var leineOffsetY = 250;
  160.             var noFishes = 5;
  161.             var noFishesOK = 0;
  162.             var textLevel = "Welcome";
  163.             var energy = 100;
  164.             var link = 100;
  165.             var stunned = 1000;
  166.             var goldCount = 0;
  167.             var goldMax = 0;
  168.             var blueCount = 0;
  169.             var blueMax = 0;
  170.             var redCount = 0;
  171.             var redMax = 0;
  172.             var greenCount = 0;
  173.             var greenMax = 0;
  174.             var goldSize = 30;
  175.             var blueSize = 30;
  176.             var redSize = 30;
  177.             var greenSize = 30;
  178.             var AirSupply = 100;
  179.             var fishcount = 400;
  180.             var bubblecount = 251;
  181.             var starcount = 300;
  182.             var bloodcount = 30;
  183.             var acidcount = 350;
  184.             var sbub = 100;
  185.             var intercount = 0;
  186.             var intercountB = 0;
  187.             var shieldActive = 0;
  188.             var linkActive = 0;
  189.             _root.attachMovie("Biff","Biff",147,{_x:220,_y:300});
  190.             _root.attachMovie("Baff","Baff",148,{_x:260,_y:300});
  191.             _root.attachMovie("lineCol","lineCol",146,{_x:260,_y:300});
  192.             _root.attachMovie("display","display",149,{_x:250,_y:250});
  193.             _root.lineCol._alpha = 0;
  194.             LeineC = function()
  195.             {
  196.                var _loc3_ = 0;
  197.                var _loc2_ = 0;
  198.                deltaX = Math.abs(Biff._x - Baff._x);
  199.                deltaY = Math.abs(Biff._y - Baff._y);
  200.                deltaC = deltaX + deltaY;
  201.                _root.createEmptyMovieClip("Line",145);
  202.                _root.Line.lineStyle(2.5,linetint,75);
  203.                _root.Line.beginFill(2236962,20);
  204.                _root.Line.moveTo(_root.Biff._x,_root.Biff._y);
  205.                if(Baff._x > Biff._x)
  206.                {
  207.                   _loc3_ = Baff._x - Biff._x;
  208.                   _loc3_ = Biff._x + _loc3_ / 2;
  209.                }
  210.                if(Baff._x < Biff._x)
  211.                {
  212.                   _loc3_ = Biff._x - Baff._x;
  213.                   _loc3_ = Baff._x + _loc3_ / 2;
  214.                }
  215.                if(Baff._y > Biff._y)
  216.                {
  217.                   _loc2_ = Baff._y - Biff._y;
  218.                   _loc2_ = Biff._y + _loc2_ / 2;
  219.                }
  220.                if(Baff._y < Biff._y)
  221.                {
  222.                   _loc2_ = Biff._y - Baff._y;
  223.                   _loc2_ = Baff._y + _loc2_ / 2;
  224.                }
  225.                if(Biff._x == Baff._x)
  226.                {
  227.                   _loc3_ = Biff._x;
  228.                }
  229.                if(Biff._y == Baff._y)
  230.                {
  231.                   _loc2_ = Biff._y;
  232.                }
  233.                _root.Line.curveTo(_loc3_ - 15,_loc2_,_root.Baff._x,_root.Baff._y);
  234.                _root.Line.curveTo(_loc3_ - 60,_loc2_,_root.Biff._x,_root.Biff._y);
  235.                _root.Line.endFill();
  236.                _root.lineCol._x = _loc3_;
  237.                _root.lineCol._y = _loc2_;
  238.                _root.lineCol._xscale = Math.sqrt(Math.pow(deltaX,2) + Math.pow(deltaY,2)) * 100;
  239.                var _loc4_ = {x:_root.lineCol._x,y:_root.lineCol._y};
  240.                var deltaX = _root.Biff._x - _loc4_.x;
  241.                var deltaY = _root.Biff._y - _loc4_.y;
  242.                var _loc5_ = Math.atan2(deltaY,deltaX);
  243.                winkel = _loc5_ / 3.141592653589793 * 180;
  244.                _root.lineCol._rotation = winkel;
  245.             };
  246.             AugenSteuerungBaff = function()
  247.             {
  248.                var _loc2_ = {x:_root.Baff._x - 12,y:_root.Baff._y - 12};
  249.                var _loc5_ = _root._xmouse - _loc2_.x;
  250.                var _loc4_ = _root._ymouse - _loc2_.y;
  251.                var _loc3_ = Math.atan2(_loc4_,_loc5_);
  252.                winkel = _loc3_ / 3.141592653589793 * 180;
  253.                _root.Baff.EyeBaff1._rotation = winkel + 90 - Baff._rotation;
  254.                _loc2_ = {x:_root.Baff._x - 1,y:_root.Baff._y - 13};
  255.                _loc5_ = _root._xmouse - _loc2_.x;
  256.                _loc4_ = _root._ymouse - _loc2_.y;
  257.                _loc3_ = Math.atan2(_loc4_,_loc5_);
  258.                winkel = _loc3_ / 3.141592653589793 * 180;
  259.                _root.Baff.EyeBaff2._rotation = winkel + 90 - Baff._rotation;
  260.             };
  261.             AugenSteuerungBiff = function()
  262.             {
  263.                var _loc2_ = {x:_root.Biff._x - 12,y:_root.Biff._y - 12};
  264.                var _loc5_ = _root._xmouse - _loc2_.x;
  265.                var _loc4_ = _root._ymouse - _loc2_.y;
  266.                var _loc3_ = Math.atan2(_loc4_,_loc5_);
  267.                winkel = _loc3_ / 3.141592653589793 * 180;
  268.                _root.Biff.EyeBiff1._rotation = winkel + 90 - Biff._rotation;
  269.                _loc2_ = {x:_root.Biff._x - 1,y:_root.Biff._y - 13};
  270.                _loc5_ = _root._xmouse - _loc2_.x;
  271.                _loc4_ = _root._ymouse - _loc2_.y;
  272.                _loc3_ = Math.atan2(_loc4_,_loc5_);
  273.                winkel = _loc3_ / 3.141592653589793 * 180;
  274.                _root.Biff.EyeBiff2._rotation = winkel + 90 - Biff._rotation;
  275.             };
  276.             setMaxSize = function(gold, blue, red, green, goldS, blueS, redS, greenS)
  277.             {
  278.                _root.goldMax = gold;
  279.                _root.blueMax = blue;
  280.                _root.redMax = red;
  281.                _root.greenMax = green;
  282.                _root.goldSize = goldS;
  283.                _root.blueSize = blueS;
  284.                _root.redSize = redS;
  285.                _root.greenSize = greenS;
  286.             };
  287.             levelControl = function()
  288.             {
  289.                newFrames = absFrames;
  290.                fps = newFrames - oldFrames;
  291.                oldFrames = absFrames;
  292.                xCount++;
  293.                switch(countLevel)
  294.                {
  295.                   case 0:
  296.                      setMaxSize(0,0,0,0,50,30,30,30);
  297.                      break;
  298.                   case 1:
  299.                      setMaxSize(4,0,0,0,50,30,30,30);
  300.                      break;
  301.                   case 2:
  302.                      setMaxSize(2,2,0,0,70,70,30,30);
  303.                      break;
  304.                   case 3:
  305.                      setMaxSize(1,4,0,0,70,60,30,30);
  306.                      break;
  307.                   case 4:
  308.                      setMaxSize(4,1,0,0,70,60,30,30);
  309.                      break;
  310.                   case 5:
  311.                      setMaxSize(0,5,0,0,30,80,30,30);
  312.                      break;
  313.                   case 6:
  314.                      setMaxSize(6,2,0,0,90,50,30,30);
  315.                      break;
  316.                   case 7:
  317.                      setMaxSize(0,3,0,0,30,90,30,30);
  318.                      break;
  319.                   case 8:
  320.                      setMaxSize(0,0,3,0,30,30,70,30);
  321.                      break;
  322.                   case 9:
  323.                      setMaxSize(2,0,2,0,100,30,80,30);
  324.                      break;
  325.                   case 10:
  326.                      setMaxSize(0,0,4,0,30,30,90,30);
  327.                      break;
  328.                   case 11:
  329.                      setMaxSize(0,0,2,1,90,30,80,70);
  330.                      break;
  331.                   case 12:
  332.                      setMaxSize(4,0,1,0,80,30,70,30);
  333.                      break;
  334.                   case 13:
  335.                      setMaxSize(0,3,3,0,30,100,110,30);
  336.                      break;
  337.                   case 14:
  338.                      setMaxSize(2,0,0,2,100,30,30,85);
  339.                      break;
  340.                   case 15:
  341.                      setMaxSize(1,1,1,1,100,50,40,85);
  342.                      break;
  343.                   default:
  344.                      setMaxSize(random(2),random(2),random(2),random(2),random(50) + 20,50,60,85);
  345.                }
  346.                if(noFishes + countLevel < noFishesOK)
  347.                {
  348.                   countLevel++;
  349.                   noFishesOK = 0;
  350.                }
  351.             };
  352.             fadeIn = function()
  353.             {
  354.                if(levelText._alpha < 80)
  355.                {
  356.                   levelText._alpha = levelText._alpha + 1;
  357.                }
  358.                else
  359.                {
  360.                   fWARTE = setInterval(warte,1000);
  361.                   clearInterval(fIN);
  362.                }
  363.             };
  364.             warte = function()
  365.             {
  366.                fOUT = setInterval(fadeOut,10);
  367.                clearInterval(fWARTE);
  368.             };
  369.             fadeOut = function()
  370.             {
  371.                if(levelText._alpha > 0)
  372.                {
  373.                   levelText._alpha--;
  374.                }
  375.                else
  376.                {
  377.                   clearInterval(fOUT);
  378.                }
  379.             };
  380.             waterControl = function()
  381.             {
  382.                leineOffset += 2;
  383.                if(leineOffset == 120)
  384.                {
  385.                   leineOffset = 0;
  386.                }
  387.                Leine.clear();
  388.                Leine.lineStyle(0.1,13421823,100);
  389.                Leine.beginFill(12303359,80);
  390.                Leine.moveTo(- leineOffset - 10,leineOffsetY + 20);
  391.                Leine.curveTo(30 - leineOffset,leineOffsetY + 20 + Math.sin(absFrames / 10) * 10,60 - leineOffset,leineOffsetY + 20);
  392.                Leine.curveTo(90 - leineOffset,leineOffsetY + 20 + Math.sin(absFrames / 10) * -10,120 - leineOffset,leineOffsetY + 20);
  393.                Leine.curveTo(150 - leineOffset,leineOffsetY + 20 + Math.sin(absFrames / 10) * 10,180 - leineOffset,leineOffsetY + 20);
  394.                Leine.curveTo(210 - leineOffset,leineOffsetY + 20 + Math.sin(absFrames / 10) * -10,240 - leineOffset,leineOffsetY + 20);
  395.                Leine.curveTo(270 - leineOffset,leineOffsetY + 20 + Math.sin(absFrames / 10) * 10,300 - leineOffset,leineOffsetY + 20);
  396.                Leine.curveTo(330 - leineOffset,leineOffsetY + 20 + Math.sin(absFrames / 10) * -10,360 - leineOffset,leineOffsetY + 20);
  397.                Leine.curveTo(390 - leineOffset,leineOffsetY + 20 + Math.sin(absFrames / 10) * 10,420 - leineOffset,leineOffsetY + 20);
  398.                Leine.curveTo(450 - leineOffset,leineOffsetY + 20 + Math.sin(absFrames / 10) * -10,480 - leineOffset,leineOffsetY + 20);
  399.                Leine.curveTo(510 - leineOffset,leineOffsetY + 20 + Math.sin(absFrames / 10) * 10,540 - leineOffset,leineOffsetY + 20);
  400.                Leine.curveTo(560 - leineOffset,leineOffsetY + 20 + Math.sin(absFrames / 10) * -10,590 - leineOffset,leineOffsetY + 20);
  401.                Leine.curveTo(620 - leineOffset,leineOffsetY + 20 + Math.sin(absFrames / 10) * 10,650 - leineOffset,leineOffsetY + 20);
  402.                Leine.lineTo(500,-10);
  403.                Leine.lineTo(-10,-10);
  404.                endFill();
  405.                Leine.lineStyle(0.1,13421823,100);
  406.                Leine.beginFill(12303359,80);
  407.                Leine.moveTo(- leineOffset - 10,leineOffsetY);
  408.                Leine.curveTo(60 - leineOffset,leineOffsetY + Math.sin(absFrames / 10) * -5,90 - leineOffset,leineOffsetY);
  409.                Leine.curveTo(120 - leineOffset,leineOffsetY + Math.sin(absFrames / 10) * 5,150 - leineOffset,leineOffsetY);
  410.                Leine.curveTo(180 - leineOffset,leineOffsetY + Math.sin(absFrames / 10) * -5,210 - leineOffset,leineOffsetY);
  411.                Leine.curveTo(240 - leineOffset,leineOffsetY + Math.sin(absFrames / 10) * 5,270 - leineOffset,leineOffsetY);
  412.                Leine.curveTo(300 - leineOffset,leineOffsetY + Math.sin(absFrames / 10) * -5,330 - leineOffset,leineOffsetY);
  413.                Leine.curveTo(360 - leineOffset,leineOffsetY + Math.sin(absFrames / 10) * 5,390 - leineOffset,leineOffsetY);
  414.                Leine.curveTo(420 - leineOffset,leineOffsetY + Math.sin(absFrames / 10) * -5,450 - leineOffset,leineOffsetY);
  415.                Leine.curveTo(480 - leineOffset,leineOffsetY + Math.sin(absFrames / 10) * 5,510 - leineOffset,leineOffsetY);
  416.                Leine.curveTo(540 - leineOffset,leineOffsetY + Math.sin(absFrames / 10) * -5,570 - leineOffset,leineOffsetY);
  417.                Leine.curveTo(590 - leineOffset,leineOffsetY + Math.sin(absFrames / 10) * 5,620 - leineOffset,leineOffsetY);
  418.                Leine.curveTo(650 - leineOffset,leineOffsetY + Math.sin(absFrames / 10) * 5,680 - leineOffset,leineOffsetY);
  419.                Leine.lineTo(500,-10);
  420.                Leine.lineTo(-10,-10);
  421.                endFill();
  422.             };
  423.             clearInterval(lc);
  424.             lc = setInterval(levelControl,1000);
  425.             _root.createEmptyMovieClip("Leine",10);
  426.             fIN = setInterval(fadeIn,20);
  427.             SpawnFish = function()
  428.             {
  429.                if(_root.goldCount < _root.goldMax)
  430.                {
  431.                   xpos = 600;
  432.                   do
  433.                   {
  434.                      ypos = random(500 - _root.leineOffsetY) + _root.leineOffsetY + 40;
  435.                   }
  436.                   while(ypos > 470);
  437.                   
  438.                   _root.goldCount = _root.goldCount + 1;
  439.                   _root.attachMovie("GoldFish","GoldFish" + _root.fishcount,_root.fishcount,{_x:xpos,_y:ypos});
  440.                   _root.fishcount = _root.fishcount + 1;
  441.                }
  442.                if(_root.blueCount < _root.blueMax)
  443.                {
  444.                   xpos = 600;
  445.                   do
  446.                   {
  447.                      ypos = random(500 - _root.leineOffsetY) + _root.leineOffsetY + 40;
  448.                   }
  449.                   while(ypos > 470);
  450.                   
  451.                   _root.blueCount = _root.blueCount + 1;
  452.                   _root.attachMovie("BlueFish","BlueFish" + _root.fishcount,_root.fishcount,{_x:xpos,_y:ypos});
  453.                   _root.fishcount = _root.fishcount + 1;
  454.                }
  455.                if(_root.redCount < _root.redMax)
  456.                {
  457.                   xpos = 600;
  458.                   do
  459.                   {
  460.                      ypos = random(500 - _root.leineOffsetY) + _root.leineOffsetY + 40;
  461.                   }
  462.                   while(ypos > 470);
  463.                   
  464.                   _root.redCount = _root.redCount + 1;
  465.                   _root.attachMovie("RedFish","RedFish" + _root.fishcount,_root.fishcount,{_x:xpos,_y:ypos});
  466.                   _root.fishcount = _root.fishcount + 1;
  467.                }
  468.                if(_root.greenCount < _root.greenMax)
  469.                {
  470.                   xpos = 600;
  471.                   do
  472.                   {
  473.                      ypos = random(500 - _root.leineOffsetY) + _root.leineOffsetY + 40;
  474.                   }
  475.                   while(ypos > 470);
  476.                   
  477.                   _root.greenCount = _root.greenCount + 1;
  478.                   _root.attachMovie("GreenFish","GreenFish" + _root.fishcount,_root.fishcount,{_x:xpos,_y:ypos});
  479.                   _root.fishcount = _root.fishcount + 1;
  480.                }
  481.                if(_root.fishcount > 450)
  482.                {
  483.                   _root.fishcount = 400;
  484.                }
  485.                if(qualSet == 0)
  486.                {
  487.                   if(fps <= 20)
  488.                   {
  489.                      _quality = "LOW";
  490.                   }
  491.                   if(fps < 23 and fps > 20)
  492.                   {
  493.                      _quality = "MEDIUM";
  494.                   }
  495.                   if(fps >= 23)
  496.                   {
  497.                      _quality = "HIGH";
  498.                   }
  499.                }
  500.             };
  501.             SFish = setInterval(SpawnFish,500);
  502.             SpawnBubble = function()
  503.             {
  504.                _root.attachMovie("Bubble","Bubble" + _root.bubblecount,_root.bubblecount,{_x:random(200) + 400,_y:550});
  505.                _root.bubblecount = _root.bubblecount + 1;
  506.                if(_root.bubblecount > 280)
  507.                {
  508.                   _root.bubblecount = 251;
  509.                }
  510.             };
  511.             SpawnStar = function()
  512.             {
  513.                xpos = 600;
  514.                do
  515.                {
  516.                   ypos = random(500 - _root.leineOffsetY) + _root.leineOffsetY + 40;
  517.                }
  518.                while(ypos > 470);
  519.                
  520.                _root.attachMovie("SeaStar","SeaStar" + _root.starcount,_root.starcount,{_x:xpos,_y:ypos});
  521.                _root.starcount = _root.starcount + 1;
  522.                if(_root.starcount > 310)
  523.                {
  524.                   _root.starcount = 300;
  525.                }
  526.             };
  527.             SpawnBlood = function(hitX, hitY)
  528.             {
  529.                _root.attachMovie("Blood","Blood" + _root.bloodcount,_root.bloodcount,{_x:hitX,_y:hitY});
  530.                _root.bloodcount = _root.bloodcount + 1;
  531.                if(_root.bloodcount > 85)
  532.                {
  533.                   _root.bloodcount = 20;
  534.                }
  535.             };
  536.             SpawnAcid = function(hitX, hitY)
  537.             {
  538.                _root.attachMovie("Acid","acid" + _root.acidcount,_root.acidcount,{_x:hitX - 50,_y:hitY});
  539.                _root.acidcount = _root.acidcount + 1;
  540.                if(_root.acidcount > 390)
  541.                {
  542.                   _root.acidcount = 320;
  543.                }
  544.             };
  545.             SpawnSBub = function(hitX, hitY)
  546.             {
  547.                _root.attachMovie("SBubble","SBub" + _root.sbub,_root.sbub,{_x:hitX,_y:hitY});
  548.                _root.sbub = _root.sbub + 1;
  549.                if(_root.sbub > 145)
  550.                {
  551.                   _root.sbub = 100;
  552.                }
  553.             };
  554.             SBubble = setInterval(SpawnBubble,1500);
  555.             SStar = setInterval(SpawnStar,12000);
  556.             mouseBleed = function()
  557.             {
  558.                SpawnBlood(_root._xmouse,_root._ymouse);
  559.                bleeder++;
  560.                if(bleeder > 20)
  561.                {
  562.                   bleeder = 0;
  563.                   clearInterval(mouseBlood);
  564.                }
  565.             };
  566.             _root.attachMovie("AllMeters","AM",500);
  567.             AM._x = 0;
  568.             AM._y = 20;
  569.             onEnterFrame = function()
  570.             {
  571.                switch(linecolor)
  572.                {
  573.                   case 1:
  574.                      linetint = 16776960;
  575.                      colPos = -59;
  576.                      break;
  577.                   case 2:
  578.                      linetint = 255;
  579.                      colPos = -28;
  580.                      break;
  581.                   case 3:
  582.                      linetint = 16711680;
  583.                      colPos = 1;
  584.                      break;
  585.                   case 4:
  586.                      linetint = 47872;
  587.                      colPos = 32;
  588.                      break;
  589.                   case 5:
  590.                      linecolor = 1;
  591.                }
  592.                if(colPos > _root.display.marker._x)
  593.                {
  594.                   _root.display.marker._x += 2;
  595.                }
  596.                if(colPos < _root.display.marker._x)
  597.                {
  598.                   _root.display.marker._x -= 2;
  599.                }
  600.                LeineC();
  601.                absFrames++;
  602.                intercount++;
  603.                intercountB++;
  604.                AugenSteuerungBaff();
  605.                AugenSteuerungBiff();
  606.                biffXNew = Biff._x;
  607.                biffYNew = Biff._y;
  608.                if(biffXNew != biffXOld || biffYNew != biffYOld)
  609.                {
  610.                   biffstat = 1;
  611.                }
  612.                else
  613.                {
  614.                   biffstat = 0;
  615.                }
  616.                if(intercount > 5)
  617.                {
  618.                   intercount = 0;
  619.                   biffXOld = Biff._x;
  620.                   biffYOld = Biff._y;
  621.                }
  622.                baffXNew = Baff._x;
  623.                baffYNew = Baff._y;
  624.                if(baffXNew != baffXOld || baffYNew != baffYOld)
  625.                {
  626.                   baffstat = 1;
  627.                }
  628.                else
  629.                {
  630.                   baffstat = 0;
  631.                }
  632.                if(intercountB > 5)
  633.                {
  634.                   intercountB = 0;
  635.                   baffXOld = Baff._x;
  636.                   baffYOld = Baff._y;
  637.                }
  638.                if(countLevel < 6)
  639.                {
  640.                   waterControl();
  641.                }
  642.                if(countLevel == 1 && leineOffsetY > 200)
  643.                {
  644.                   leineOffsetY--;
  645.                   if(waterCol._alpha < 40)
  646.                   {
  647.                      waterCol._alpha += 0.5;
  648.                   }
  649.                }
  650.                if(countLevel == 3 && leineOffsetY > 100)
  651.                {
  652.                   leineOffsetY--;
  653.                   if(waterCol._alpha < 50)
  654.                   {
  655.                      waterCol._alpha += 0.5;
  656.                   }
  657.                }
  658.                if(countLevel == 5 && leineOffsetY > -30)
  659.                {
  660.                   leineOffsetY--;
  661.                   if(waterCol._alpha < 60)
  662.                   {
  663.                      waterCol._alpha += 0.5;
  664.                   }
  665.                }
  666.                if(countLevel == 7)
  667.                {
  668.                   if(waterCol._alpha < 70)
  669.                   {
  670.                      waterCol._alpha += 0.5;
  671.                   }
  672.                   Leine.removeMovieClip();
  673.                }
  674.                if(countLevel == 8)
  675.                {
  676.                   if(waterCol._alpha < 95)
  677.                   {
  678.                      waterCol._alpha += 0.5;
  679.                   }
  680.                }
  681.                if(xCount == 5)
  682.                {
  683.                   countLevel = 1;
  684.                }
  685.                if(countLevel < 2)
  686.                {
  687.                   levelText._rotation = Math.sin(absFrames / 30) * 10;
  688.                   levelText._y += Math.sin(absFrames / 20);
  689.                }
  690.                if(AirSupply > 1)
  691.                {
  692.                   AirSupply -= 0.1;
  693.                }
  694.                if(_root.shieldActive == 0 && _root.Biff.shield._alpha > 0)
  695.                {
  696.                   _root.Biff.shield._alpha -= 5;
  697.                   _root.Baff.shield._alpha -= 5;
  698.                }
  699.                if(_root.shieldActive == 1 && _root.Biff.shield._alpha < 75)
  700.                {
  701.                   _root.Biff.shield._alpha += 5;
  702.                   _root.Baff.shield._alpha += 5;
  703.                }
  704.                if(_root.shieldActive == 1 && _root.Biff.shield._alpha > 20)
  705.                {
  706.                   if(AirSupply > 1)
  707.                   {
  708.                      AirSupply -= 0.3;
  709.                   }
  710.                   if(AirSupply < 1)
  711.                   {
  712.                      shieldActive = 0;
  713.                   }
  714.                }
  715.                if(AirSupply < 15 && drama != 0)
  716.                {
  717.                   _root.music.stop();
  718.                   _root.musicB.start(0,100000);
  719.                   drama = 0;
  720.                }
  721.                if(AirSupply < 1)
  722.                {
  723.                   energy -= 0.3;
  724.                }
  725.                if(AirSupply > 15 && drama == 0)
  726.                {
  727.                   _root.musicB.stop();
  728.                   _root.music.start(0,100000);
  729.                   drama = 1;
  730.                }
  731.                if(linkActive == 0)
  732.                {
  733.                   if(_root.link + 2 <= 100)
  734.                   {
  735.                      _root.link += 0.25;
  736.                   }
  737.                   else
  738.                   {
  739.                      _root.link = 100;
  740.                   }
  741.                }
  742.                if(energy < cheat)
  743.                {
  744.                   _root.Leine.removeMovieClip();
  745.                   _root.Biff.removeMovieClip();
  746.                   _root.Baff.removeMovieClip();
  747.                   _root.AM.removeMovieClip();
  748.                   _root.Line.removeMovieClip();
  749.                   _root.lineCol.removeMovieClip();
  750.                   _root.display.removeMovieClip();
  751.                   clearInterval(SFish);
  752.                   clearInterval(SBubble);
  753.                   clearInterval(SStar);
  754.                   _root.remove = 1;
  755.                   gotoAndPlay(16);
  756.                }
  757.                if(linkActive == 1)
  758.                {
  759.                   if(link > 0)
  760.                   {
  761.                      link -= 0.5;
  762.                   }
  763.                   if(link < 2)
  764.                   {
  765.                      linkActive = 0;
  766.                      _root.linked = " ";
  767.                   }
  768.                   switch(_root.movestat)
  769.                   {
  770.                      case 1:
  771.                         if(_root.Biff._x - _root.xoff > 20 && _root.Biff._x - _root.xoff < 480)
  772.                         {
  773.                            _root.Baff._x = _root.Biff._x - _root.xoff;
  774.                         }
  775.                         if(_root.Biff._y - _root.yoff >= 40 + _root.leineOffsetY && _root.Biff._y - _root.yoff < 480)
  776.                         {
  777.                            _root.Baff._y = _root.Biff._y - _root.yoff;
  778.                         }
  779.                         break;
  780.                      case 2:
  781.                         if(_root.Baff._x + _root.xoff > 20 && _root.Baff._x + _root.xoff < 480)
  782.                         {
  783.                            _root.Biff._x = _root.Baff._x + _root.xoff;
  784.                         }
  785.                         if(_root.Baff._y + _root.yoff >= 40 + _root.leineOffsetY && _root.Baff._y + _root.yoff < 480)
  786.                         {
  787.                            _root.Biff._y = _root.Baff._y + _root.yoff;
  788.                         }
  789.                   }
  790.                }
  791.                else
  792.                {
  793.                   _root.xoff = _root.Biff._x - _root.Baff._x;
  794.                   _root.yoff = _root.Biff._y - _root.Baff._y;
  795.                }
  796.                _root.winkelb += 0.1;
  797.             };
  798.             stop();
  799.             break;
  800.          }
  801.          if(eval("\x01") == 964)
  802.          {
  803.             set("\x01",eval("\x01") - 964);
  804.          }
  805.          break;
  806.       }
  807.       set("\x01",eval("\x01") + 366);
  808.    }
  809. }
  810.